import java.util.Comparator;

public class BookPage_Sore implements Comparator<Book> {

	@Override
	public int compare(Book o1, Book o2) {
		int x=0;
		if(o1.getPageCount()>o2.getPageCount()) {x=1;}
		else if(o1.getPageCount()<o2.getPageCount()) {x=-1;}
		else if(o1.getPageCount()==o2.getPageCount()) {x=0;}
		return x;
	}

	
	
	

}
